<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MyISERN 2.0 - Add Researcher</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<link href="default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="ajax/prototype.js"></script>
<script type="text/javascript" src="ajax/common.js"></script>
<script type="text/javascript" src="ajax/actb.js"></script>
</head>

<body>

<div id="logo">
	<h1>Myisern</h1>
</div>

<%@ include file="menu.jsp" %>

<!-- end #menu -->



<div id="page">

  <div id="welcome" class="post">
	<div class="title">
	  <h2 align="center"><span class="style8">Welcome to MyIsern!</span></h2>
	</div>
    
    <div class="story">
		<h1 class="title" align="center">Add Researcher</h1>
     <div class="entry">
		<center>
			<table align="center">
			  <tbody>
						<tr>
							<c:if test='${actionBean.added == true}'>
								<td colspan="2" align="center"><h3>The following Researcher has been added.</h3></td>
							</c:if>
						</tr>
						<tr>
							<td colspan="2" align="center"><strong><font color="white">${actionBean.errorMessage}</font></strong></td>
						</tr>
						<tr>
							<td colspan="2">&nbsp;</td>
						</tr>
								<stripes:form id="ResearcherForm" action="/Researcher.action" focus="">
									<tr>
										<td></td>
										<td>
											<stripes:hidden name="organizationNamesList" id="organizationNamesList"/>
										</td>
									</tr>
									<tr>
										<td><strong>Name&nbsp;&nbsp;&nbsp;</strong></td>
										<td><stripes:text name="name" size="41"/></td>
									</tr>
									<tr>
										<td><strong>Organization&nbsp;&nbsp;&nbsp;</strong></td>
										<td><stripes:text name="organization" id="organization" size="41"/></td>
										<script>
											var namesList = document.getElementById('organizationNamesList').value;
											var names = namesList.split("|");
											new actb(document.getElementById('organization'),names);
										</script>
									</tr>
									<tr>
										<td><strong>Email&nbsp;&nbsp;&nbsp;</strong></td>
										<td><stripes:text name="email" size="41"/></td>
									</tr>
									<tr>
										<td><strong>Picture-Link&nbsp;&nbsp;&nbsp;</strong></td>
										<td><stripes:text name="pictureLink" size="41"/></td>
									</tr>
									<tr>
										<td colspan="2"><strong>Bio-Statement&nbsp;&nbsp;&nbsp;</strong></td>
									</tr>
									<tr>
										<td colspan="2"><stripes:textarea name="bioStatement" cols="44" rows="8"/></td>
									</tr>
									<tr>
										<td colspan="2" align="center">&nbsp;</td>
									</tr>
									<tr>
										<td></td>
										<c:choose>
											<c:when test='${actionBean.added == true}'>
												<td align="center">
													<stripes:submit value="Edit" name="edit"/>
													&nbsp;&nbsp;&nbsp;
													<stripes:submit value="Remove" name="remove"/>
												</td>
											</c:when>
											<c:otherwise>
												<td align="right">
													<stripes:submit value="Add" name="add"/>								
													&nbsp;&nbsp;&nbsp;
													<stripes:submit value="Reset" name="reset"/>
													&nbsp;&nbsp;&nbsp;
													<stripes:submit value="Cancel" name="cancel"/>
												</td>
											</c:otherwise>
										</c:choose>
									</tr>
								</stripes:form>
					</tbody>
				</table>
			</center>
          </div>
    
    
    
    </div>
  </div>
		
    <!-- end #content -->
	<!-- end #sidebar -->
    
 <div id="extra" style="clear: both;">&nbsp;</div>
</div>


<!-- end #page -->

<div id="footer">
	<p id="legal"><span class="style6">Copyright &copy; 2007 Eclipse. All Rights Reserved.</span></p>
</div>


</body>
</html>
